<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="core" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="resources/css/bootstrap.min.css">  
	<script src="resources/js/jquery.min.js"></script>
	<script src="resources/js/bootstrap.min.js"></script>
<title>汽车班次表</title>
</head>
<body>
	
	<nav class="navbar navbar-default navbar-static-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="/Schedule/admin/home">管理员首页</a></li>
            <li><a href="/Schedule/schedule">班次管理</a></li>
            <li><a href="/Schedule/place">站点管理</a></li>
            <li><a href="/Schedule/bus">车辆管理</a></li>
            <li><a href="/Schedule/price">价格管理</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a>您好！</a></li>
            <li><a>${name}</a></li>
            <li><a href="/Schedule">退出登录</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
	
 <a class="btn btn-primary" href="schedule/add">添加</a>
	<table class="table table-bordered table-hover">
		<thead>
			<tr>
				<th>汽车号</th>
				<th>出发地</th>
				<th>目的地</th>
				<th>出发时间</th>
				<th></th>
				<th></th>
			</tr>
		</thead>
			<core:forEach var="schedule" items="${schedules}">		
		<tbody>
				<tr>
					<td>${schedule.busId}</td>
					<td>${schedule.starting}</td>
					<td>${schedule.ending}</td>
					<td>${schedule.time}</td>
					<td><a href="schedule/delete?busId=${schedule.busId}">删除</a></td>
					<td><a href="schedule/update?busId=${schedule.busId}">修改</a></td>
				</tr>
		</tbody>
		</core:forEach>
	</table>
</body>
</html>